<template>
  <!--    编辑      -->
  <m-ctrl-btn
      :disabled="!selection.length"
      type="warning" title="编辑数据"
      @click="$emit('open')"
  >
    <fa icon="pen"></fa>
  </m-ctrl-btn>
  <!--    删除      -->
  <m-ctrl-btn
      type="danger" title="删除"
      @click="$emit('remove')"
  >
    <fa icon="remove"></fa>
  </m-ctrl-btn>
</template>

<script setup lang="ts">


import MCtrlBtn from "../../common/MCtrlBtn.vue";

defineProps(['selection'])


defineEmits(['remove', 'open'])

</script>

<style scoped>

</style>